from common import config
from .local_api import LocalAPI
from .web_api import WebAPI

def api_factory():
    if config.API_TYPE == 'local':
        return LocalAPI()
    else:
        return WebAPI()

api = api_factory()
